package com.bestv.bsr.core.exceptions;


import com.bestv.bsr.core.constants.ServiceCodeEnum;

/**
 * 业务异常
 *
 * @author taojiacheng
 */
public class ServiceException extends BaseException {

    private static final long serialVersionUID = 1L;

    public ServiceException(Integer errorCode, String message, Object... args) {
        super("BSR", errorCode, message, args);
    }

    public ServiceException(String message, Object... args) {
        super("BSR", 0, message, args);
    }

    public ServiceException(ServiceCodeEnum serviceCodeEnum, String... args) {
        super("BSR", serviceCodeEnum.getCode(), serviceCodeEnum.getMsg(), args);
    }

}
